package com.gxa.hualian.configuration;

import com.gxa.hualian.pojo.Users;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConfig {
    @Bean(name = "usersBean")
    public Users getUser(){
        Users users = new Users();
        users.setId(20);
        users.setName("打工仔");
        return users;
    }
}
